#pragma once
// -------------------------------------------------
// BlinKit - skia Library
// -------------------------------------------------
//   File Name: _pc.h
// Description: Pre-compiled Header File
//      Author: Ziming Li
//     Created: 2020-10-12
// -------------------------------------------------
// Copyright (C) 2020 MingYang Software Technology.
// -------------------------------------------------

#ifndef BLINKIT_SKIA__PC_H
#define BLINKIT_SKIA__PC_H

#include "third_party/zed/include/zed/build_macros.h"

#ifdef _Z_OS_WINDOWS
#   pragma warning(disable: 4244 4267 4291 4334 4819)
#   define _CRT_SECURE_NO_WARNINGS
#   define SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS
#endif

#ifdef _Z_OS_APPLE
#   pragma clang diagnostic ignored "-Wconditional-uninitialized"
#   pragma clang diagnostic ignored "-Wdeprecated-anon-enum-enum-conversion"
#   pragma clang diagnostic ignored "-Wdeprecated-declarations"
#   pragma clang diagnostic ignored "-Wdocumentation"
#   pragma clang diagnostic ignored "-Wshorten-64-to-32"
#   pragma clang diagnostic ignored "-Wuninitialized-const-reference"
#   pragma clang diagnostic ignored "-Wunreachable-code"
#endif

#include "./_skia.h"

#define SK_CPU_SSE_LEVEL    SK_CPU_SSE_LEVEL_SSE41
#define BK_SSE_FOR_AMD

#endif // BLINKIT_SKIA__PC_H
